import { Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'

import { PostEntity } from '~/modules/system/post/post.entity'
import { UserEntity } from '~/modules/system/user/user.entity'

import { PostController } from './post.controller'
import { PostService } from './post.service'

@Module({
  imports: [TypeOrmModule.forFeature([PostEntity, UserEntity])],
  controllers: [PostController],
  providers: [PostService],
  exports: [PostService],
})
export class PostModule {}
